package health.lm.com.home.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by Android Studio .
 * Project：hlian health.lm.com.home.entity
 * Date：2019/8/19 15:14
 * Introduce：首页实体类
 */
public class HomeMultiEntity implements MultiItemEntity {
    public static final int TYPE_BANNER = 1;
    public static final int TYPE_NOTICE = 2;
    public static final int TYPE_BUSINESS = 3;
    public static final int TYPE_RECOMMEND = 4;
    private int itemType = 0;
    private List<HomeBannerEntity> banner;
    private List<HomeNoticeMsgEntity> notices;
    private HomeBusinessEntity business;
    private List<HomeRecommendEntity> recommend;
    private List<Title> titles;

    public HomeMultiEntity(int pItemType) {
        itemType = pItemType;
    }

    public HomeMultiEntity() {
    }

    @Override
    public int getItemType() {
        return itemType;
    }

    public List<HomeBannerEntity> getBanner() {
        return banner;
    }

    public void setBanner(List<HomeBannerEntity> pBanner) {
        banner = pBanner;
    }

    public List<HomeNoticeMsgEntity> getNotices() {
        return notices;
    }

    public void setNotices(List<HomeNoticeMsgEntity> pNotices) {
        notices = pNotices;
    }

    public HomeBusinessEntity getBusiness() {
        return business;
    }

    public void setBusiness(HomeBusinessEntity pBusiness) {
        business = pBusiness;
    }

    public List<HomeRecommendEntity> getRecommend() {
        return recommend;
    }

    public void setRecommend(List<HomeRecommendEntity> pRecommend) {
        recommend = pRecommend;
    }

    public List<Title> getTitles() {
        return titles;
    }

    public void setTitles(List<Title> pTitles) {
        titles = pTitles;
    }

    public static class Title {
        private String id;
        @SerializedName("title")
        private String name;
        private List<TagData> tag;

        public String getId() {
            return id;
        }

        public void setId(String pId) {
            id = pId;
        }

        public String getName() {
            return name;
        }

        public void setName(String pName) {
            name = pName;
        }

        public List<TagData> getTag() {
            return tag;
        }

        public void setTag(List<TagData> pTag) {
            tag = pTag;
        }

        public class TagData {
            private String id;
            @SerializedName("title")
            private String tag;

            public String getId() {
                return id;
            }

            public void setId(String pId) {
                id = pId;
            }

            public String getTag() {
                return tag;
            }

            public void setTag(String pTag) {
                tag = pTag;
            }
        }
    }
}
